def dec(func):
    """
    装饰器函数
    Args:
        func:

    Returns:

    """

    def wrapper(*args, **kwargs):
        print("开始执行如下函数：" + func.__name__)
        return func(*args, **kwargs)

    return wrapper


@dec
def gxl_fun():
    print("gxl_fun")


if __name__ == "__main__":
    gxl_fun()
